import java.util.ArrayList;


public class Token {
	
	String tokenType;
    String attribute;
	private ArrayList<Integer> lineNumber; 
	private ArrayList<Integer> linePosition;
	private String content;
	
	String getcontent(){
		return content;
	}
	
	String getTokenType(){
		return tokenType;
	}
	
	String getAttribute(){
		return attribute;
	}
	
	ArrayList<Integer> getLineNumber(){
		return lineNumber;
	}
	
	ArrayList<Integer> getLinePosition(){
		return linePosition;
	}
	public void setNewPosition(String _lineNumber,String _linePosition){
		lineNumber.add(Integer.parseInt(_lineNumber));
		linePosition.add(Integer.parseInt(_linePosition));
	}
	
	Token()
	{
		
	}
	
	Token(String _tokentype,String _attribute,String _content,String _lineNumber,String _linePosition){
		tokenType=_tokentype;
		attribute=_attribute;
		lineNumber = new ArrayList<Integer>();
		linePosition = new ArrayList<Integer>();
		System.out.print(_lineNumber);
		this.lineNumber.add(Integer.parseInt(_lineNumber));
		
		this.linePosition.add(Integer.parseInt(_linePosition));
		content=_content;
	}
	
	Token(String _tokentype,String _attribute){
		tokenType=_tokentype;
		attribute=_attribute;
	}
	
}

